﻿using System;
using System.Threading.Tasks;
using System.Diagnostics;
using System.Threading;
using System.Collections.Concurrent;

namespace ThreadDemo
{
    class Program
    {
        static void Main(string[] args)
        {
            ParallelDemo parallelDemo = new ParallelDemo();

            //parallelDemo.ParallelInvokeMethod();
            //parallelDemo.ParallelForMethod();
            //parallelDemo.ParallelForEachMethod();
            parallelDemo.ConcurrentBagMethod();
            //parallelDemo.TestLinqSpeed();

            Console.ReadLine();

        }


    }
    class Student
    {
        public int Id { get; set; }
        public string Name { get; set; }
    }
}
